package com.dhcc.core.modules.system.service;

import java.util.List;
import java.util.Map;

/**
 * 权限服务
 * 
 * @ClassName: IPermissionService
 * @Description: TODO
 * @author: cyf
 * @date: 2018年1月2日 上午10:42:41
 */
public interface IPermissionService {
    
    void authPerm(Long resourceId, Long principalId, int principalType, Boolean isAdd);
    
    Map<String, List<Long>> loadPermsByResourceId(Long resourceId);

    Map<String, List<Long>> loadPermsByPrincipalId(Long principalId, Integer principalType);
}
